const getters = {
  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  // 快捷属性,token
  token: (state) => state.user.token,
  name: (state) => state.user.userInfo.username, // 建立用户名称的映射
  userId: (state) => state.user.userInfo.userId, // 建立用户id的映射
  staffPhoto: (state) => state.user.userInfo.staffPhoto // 建立用户头像的映射
}
export default getters
